package com.linghu.study.springbootshirojwtdemo.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author: linghu
 * @date:
 * @version: 1.0.0
 * @description: JWToken类，主要是适配shiro的token类便于校验
 */
public class JWTToken implements AuthenticationToken {
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
